package oop6;

import oop1.School;
import oop5.Pet;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class ZooTest {
    public static void main(String[] args) {
        Zoo z = new Zoo();
        System.out.println("打算花多少钱：");
        int money = new Scanner(System.in).nextInt();
        Pet p = z.sell(money);
        if (p == null) {
            System.out.println("钱不够，没买到");
        } else {
            System.out.println("买到了：" + p);
            p.print();
        }
    }
}
